<template>
  <div>
    <!-- 底部导航 -->
    <van-tabbar v-model="active" :route="true" @change="changeFn" :placeholder=true>
      <van-tabbar-item icon="home-o" to="./home">主页</van-tabbar-item>
      <van-tabbar-item icon="bookmark-o" to="./topic">专题</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="./category">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="./car">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="./user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "",
  props: [""],
  data() {
    return {
      active: 0,
    };
  },

  components: {},

  computed: {},

  created() {},

  mounted() {},

  methods: {
    changeFn(active) {
      this.active = active;
    },
  },
};
</script>
<style scoped>
</style>